From: Georges Basile Stavracas Neto Date: Tue, 2 Jul 2019 13:12:08 +0000 (-0300) Subject: baseAppView: Remove unused BaseAppView.addItem X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~839^2^2~74 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=9c6f558c9e7e2a579145db078c89000ad982a5b9;p=gnome-shell.git baseAppView: Remove unused BaseAppView.addItem Now that BaseAppView does not allow for subclasses to add and remove items directly, the addItem() method can be removed. Remove BaseAppView.addItem(). https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/645 --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index d74630b98..d222e9610 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -149,12 +149,6 @@ class BaseAppView { return this._allItems; } - addItem(icon) { - let id = icon.id; - this._allItems.push(icon); - this._items[id] = icon; - } - _compareItems(a, b) { return a.name.localeCompare(b.name); }